package com.tongji.housediy.controller.userCMD
{
	import com.tongji.housediy.events.UserLoadandRegisterEvent.LoginEvent;
	import com.tongji.housediy.model.UserInforModel;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/5/23
	 */ 
	public class UpdateUserCommand extends Command
	{
		[Inject]
		public var event:LoginEvent;
		
		[Inject]
		public var model:UserInforModel;
		
		override public function execute():void
		{
			model.updateUser(event.userID);
		}
	}
}